package com.legendshop.openportal.sdk.model.request;

import com.legendshop.openportal.sdk.model.BaseRequest;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

import static com.legendshop.openportal.sdk.model.constants.ApiPathConstants.QUERY_PROD_PAGE;

/**
 * @Description: 商品池分页查询
 * @Author lwj
 * @data 2024/6/28
 **/
@Data
@Accessors(chain = true)
@ApiModel(value = "商品池分页查询对象")
public class ProdPageRequest extends BaseRequest {

    private static final long serialVersionUID = 3445103397509254204L;

    @ApiModelProperty(value = "每页大小，每次返回最多1000条记录")
    private Integer pageSize = 10;

    /**
     * 从那条商品ID记录开始搜索，代表着最后一条商品ID，下一次查询的ID会比这个大
     */
    @ApiModelProperty(value = "从那条记，为空则是从头开始查询")
    Long offset;


    /**
     * 商品池ID，非必填
     */
    @ApiModelProperty(value = "商品池ID，非必填")
    private Long categoryId;


    /**
     * 全局类目ID，非必填
     */
    @ApiModelProperty(value = "全局类目ID，非必填")
    private Long globalCategoryId;


    @ApiModelProperty(value = "入库开始时间(时间戳)")
    private Long startTime;

    @ApiModelProperty(value = "入库结束时间(时间戳)")
    private Long endTime;

    @Override
    @ApiModelProperty(hidden = true)
    public String getApiPath() {
        return QUERY_PROD_PAGE;
    }
}
